From: Owen W. Taylor Date: Wed, 24 Sep 2014 20:40:00 +0000 (-0400) Subject: background: when a file changes, remove it from the image cache X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2073 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=50ac1dd197db5389492f6910586698abe04c080b;p=gnome-shell.git background: when a file changes, remove it from the image cache MetaBackgroundCache doesn't itself use file watches, so when a image that we are monitoring changes we need to purge it from the cache, so that when we load it again we get the new image. https://bugzilla.gnome.org/show_bug.cgi?id=710756 --- diff --git a/js/ui/background.js b/js/ui/background.js index 9ca9312ec..781f20240 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -300,6 +300,8 @@ const Background = new Lang.Class({ let signalId = this._cache.connect('file-changed', Lang.bind(this, function(cache, changedFile) { if (changedFile == filename) { + let imageCache = Meta.BackgroundImageCache.get_default(); + imageCache.purge(changedFile); this.emit('changed'); } }));